package com.dimeng;

import com.dimeng.utils.CommonUtil;

import android.content.Intent;
import android.os.Bundle;

/**
 *@author:518ad-ccn
 *date:Mar 29, 2012
 *describe:加载url的页面地址
 */
public class WebViewActivity extends LoadDataSuperActivity{
	private static final long serialVersionUID = 7822565887374225617L;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Intent intent = getIntent();
		url = intent.getStringExtra("url");
		if(null != url && !"".equals(url.trim())){
	       	mTask = new MyTask(WebViewActivity.this);
	       	setContentView(webView);
            mTask.execute();
		}
	}

	@Override
	public void loadData() {
		CommonUtil.loadUrl(WebViewActivity.this, url, webView);
	}
}
